<?php
/*
	我的人脉
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'mycollect';
set_html('title','我的人脉圈');
if($_RQ['op']=='mycollect'){
	//我的收藏
	$list=$this->getall('collect',array('mid'=>$_SESSION['uid']));
	if($list){
		foreach($list as &$item){
			$card=$this->get('card',array('mid'=>$item['collect_mid']),array('name','position','company','qianming','avatar'));
			$item=array_merge($item,$card);
		}
	}
	$return['list']=$list;
	exi($return);
}
if($_RQ['op']=='collectme'){
	//收藏我的
	$list=$this->getall('collect',array('collect_mid'=>$_SESSION['uid']));
	if($list){
		foreach($list as &$item){
			$card=$this->get('card',array('mid'=>$item['mid']),array('name','position','company','qianming','avatar'));
			$item=array_merge($item,$card);
		}
	}
	$return['list']=$list;
	exi($return);
}